<?php include '_sidebar.php' ?>

<?php $c = array_key_exists("empresa", $contenido) ? $contenido["empresa"] : null ?>
<div class="span10">
    <form class="well" action="index.php?modulo=empresa&accion=persist" method="POST">
        <label>Rut</label>
        <input type="text" class="span4" <?php echo $c ? "readonly" : "" ?> name="rut" placeholder="RUT" value="<?php echo $c ? $c["rut"] : "" ?>">

        <label>Nombre</label>
        <input type="text" class="span4" name="empresa_nombre" placeholder="Marrel SA" value="<?php echo $c ? $c["empresa_nombre"] : "" ?>">

        <div class="form-actions">
            <button type="submit" class="btn btn-primary">Guardar</button>
            <button class="btn" onclick="window.location='index.php?modulo=empresa'; return false;">Cancelar</button>
        </div>
        
    </form>
</div>